package excption.work;

import java.io.BufferedReader;
import java.io.FileInputStream;
import java.io.InputStreamReader;

public class test7 {
    public static void main(String[] args) throws Exception{
        FileInputStream fis=new FileInputStream("fos.txt");
        InputStreamReader isr =new InputStreamReader(fis);
        BufferedReader br =new BufferedReader(isr);
        String b;
        while ((b= br.readLine())!=null){
            System.out.println(b);

        }
        br.close();
    }
}
